package com.ambitor.ipro.util;

public interface Constants {

	/** ******************* 以下为淘宝API相关常量 ************************* */
	public static final boolean EVN_SWITCH = Boolean
			.parseBoolean((PropertiesReader.getString("EVN_SWITCH")));

	public static final String APP_KEY_IMPROMOTION = PropertiesReader
			.getString("APP_KEY_IMPROMOTION");

	public static final String APP_SECRET_IMPROMOTION = PropertiesReader
			.getString("APP_SECRET_IMPROMOTION");

	public static final String API_SERVICE_URL = PropertiesReader
			.getString("API_SERVICE_URL");

	public static final String API_SANDBOX_SERVICE_URL = PropertiesReader
			.getString("API_SANDBOX_SERVICE_URL");

	public static final Long LEASE_ID = Long.parseLong(PropertiesReader
			.getString("LEASE_ID"));

	public static final int TAOBAO_API_CALL_MAX_TIMES = Integer
			.parseInt(PropertiesReader.getString("TAOBAO_API_CALL_MAX_TIMES"));

	public static final Long TAOBAO_API_CALL_INTERVAL_WHEN_ERROR = Long
			.parseLong(PropertiesReader
					.getString("TAOBAO_API_CALL_INTERVAL_WHEN_ERROR"));

	public static final long TAOBAO_API_MAX_PAGE_SIZE = Long
			.parseLong(PropertiesReader.getString("TAOBAO_API_MAX_PAGE_SIZE"));

	public static final String ERROR_CODE_INVALID_SESSION = "27";

	public static final String TAOBAO_LOGIN_URL = PropertiesReader
			.getString("TAOBAO_LOGIN_URL");

	/** ******************* 以下为公告帮助相关常量 ************************* */

	public static final String ARTICLE_TYPE_NOTICE = PropertiesReader
			.getString("ARTICLE_TYPE_NOTICE");

	public static final String ARTICLE_TYPE_FAQ = PropertiesReader
			.getString("ARTICLE_TYPE_FAQ");

	public static final int ARTICLE_DISPLAY_NUMBER = Integer
			.parseInt(PropertiesReader.getString("ARTICLE_DISPLAY_NUMBER"));

	/** ******************* 以下为智能推广相关常量 ************************* */

	public static final String TITLE_IN_STYLE_CODE = PropertiesReader
			.getString("TITLE_IN_STYLE_CODE");

	public static final String SHOP_URL_IN_STYLE_CODE = PropertiesReader
			.getString("SHOP_URL_IN_STYLE_CODE");

	public static final String PRO_CONTENT_IN_STYLE_CODE = PropertiesReader
			.getString("PRO_CONTENT_IN_STYLE_CODE");

	public static final String ITEM_TITLE_IN_STYLE_CODE = PropertiesReader
			.getString("ITEM_TITLE_IN_STYLE_CODE");

	public static final String PRICE_LABEL_IN_STYLE_CODE = PropertiesReader
			.getString("PRICE_LABEL_IN_STYLE_CODE");

	public static final String BUY_BUTTON_IN_STYLE_CODE = PropertiesReader
			.getString("BUY_BUTTON_IN_STYLE_CODE");

	public static final String IID_IN_STYLE_CODE = PropertiesReader
			.getString("IID_IN_STYLE_CODE");

	public static final String PIC_URL_IN_STYLE_CODE = PropertiesReader
			.getString("PIC_URL_IN_STYLE_CODE");

	public static final String FROM_IID_IN_STYLE_CODE = PropertiesReader
			.getString("FROM_IID_IN_STYLE_CODE");

	public static final String PRICE_IN_STYLE_CODE = PropertiesReader
			.getString("PRICE_IN_STYLE_CODE");

	public static final String INDICATION_APP_NAME = PropertiesReader
			.getString("INDICATION_APP_NAME");

	public static final String INDICATION_TAG_TABLE = PropertiesReader
			.getString("INDICATION_TAG_TABLE");

	public static final String INDICATION_TAG_DIV = PropertiesReader
			.getString("INDICATION_TAG_DIV");

	public static final String DEFAULT_INTELLIGENCE_NUMBER = PropertiesReader
			.getString("DEFAULT_INTELLIGENCE_NUMBER");;

	public static final String DEFAULT_INTELLIGENCE_FREQUENCY = PropertiesReader
			.getString("DEFAULT_INTELLIGENCE_FREQUENCY");

	public static final String DEFAULT_INTELLIGENCE_LABEL_1 = PropertiesReader
			.getString("DEFAULT_INTELLIGENCE_LABEL_1");;

	public static final String DEFAULT_INTELLIGENCE_LABEL_2 = PropertiesReader
			.getString("DEFAULT_INTELLIGENCE_LABEL_2");

	public static final String DEFAULT_PROMOT_RADIO = PropertiesReader
			.getString("DEFAULT_PROMOT_RADIO");

	public static final String DEFAULT_PROMOT_STYLE = PropertiesReader
			.getString("DEFAULT_PROMOT_STYLE");

	public static final String DEFAULT_NUM_PER_LINE = PropertiesReader
			.getString("DEFAULT_NUM_PER_LINE");

	public static final String DEFAULT_BUY_BUTTON = PropertiesReader
			.getString("DEFAULT_BUY_BUTTON");

	public static final String DEFAULT_PRICE_LABEL = PropertiesReader
			.getString("DEFAULT_PRICE_LABEL");

	public static final String DEFAULT_PROMOTION_LABEL = PropertiesReader
			.getString("DEFAULT_PROMOTION_LABEL");

	public static final String DEFAULT_MARKET_PRICE = PropertiesReader
			.getString("DEFAULT_MARKET_PRICE");

	public static final String DEFAULT_STATIC_FLAG = PropertiesReader
			.getString("DEFAULT_STATIC_FLAG");

	public static final String DEFAULT_BC_TYPE = PropertiesReader
			.getString("DEFAULT_BC_TYPE");

	public static final String DEFAULT_INSTALL_PLACE = PropertiesReader
			.getString("DEFAULT_INSTALL_PLACE");

	public static final String DEFAULT_PROMOT_TITLE = PropertiesReader
			.getString("DEFAULT_PROMOT_TITLE");

	public static final String DEFAULT_STANDARD_STYLE = PropertiesReader
			.getString("DEFAULT_STANDARD_STYLE");

	public static final String DEFAULT_STRATEGY_CLASS = PropertiesReader
			.getString("DEFAULT_STRATEGY_CLASS");

	public static final int TAOBAO_ITEM_DESC_MAX_CHAR = Integer
			.parseInt(PropertiesReader.getString("TAOBAO_ITEM_DESC_MAX_CHAR"));

	public static final int TITLE_LENGTH_TO_TRIM = Integer
			.parseInt(PropertiesReader.getString("TITLE_LENGTH_TO_TRIM"));

	public static final int MAX_TO_PROMOTE_NUM_LOW = Integer
			.parseInt(PropertiesReader.getString("MAX_TO_PROMOTE_NUM_LOW"));

	public static final int MAX_TO_PROMOTE_NUM_MIDDLE = Integer
			.parseInt(PropertiesReader.getString("MAX_TO_PROMOTE_NUM_MIDDLE"));

	public static final int MAX_TO_PROMOTE_NUM_HIGH = Integer
			.parseInt(PropertiesReader.getString("MAX_TO_PROMOTE_NUM_HIGH"));

	public static final int HIGH_PRIORITY = Integer.parseInt(PropertiesReader
			.getString("HIGH_PRIORITY"));

	public static final int MIDDLE_PRIORITY = Integer.parseInt(PropertiesReader
			.getString("MIDDLE_PRIORITY"));

	public static final int LOW_PRIORITY = Integer.parseInt(PropertiesReader
			.getString("LOW_PRIORITY"));

	public static final String INSTALL_TRADE_TYPES = PropertiesReader
			.getString("INSTALL_TRADE_TYPES");

	public static final String UNINSTALL_TRADE_TYPES = PropertiesReader
			.getString("UNINSTALL_TRADE_TYPES");

	/** ************************ 计数器变量 ********************************** */

	public static final String COUNT_SELLER_CAT_NAME = PropertiesReader
			.getString("COUNT_SELLER_CAT_NAME");

	public static final String COUNT_URL = PropertiesReader
			.getString("COUNT_URL");

	public static final String COUNT_URL_OLD = PropertiesReader
			.getString("COUNT_URL_OLD");

	public static final int PV_NUM_WHEN_SAVE_TO_DB = Integer
			.parseInt(PropertiesReader.getString("PV_NUM_WHEN_SAVE_TO_DB"));

	public static final String STR_MUST_IN_REFERER_OF_COUNT_URL = PropertiesReader
			.getString("STR_MUST_IN_REFERER_OF_COUNT_URL");

	/** ************************ PAGER变量 ********************************** */

	public static final String PAGER_ASC = "asc";

	public static final String PAGER_DESC = "desc";

	public static final int PAGER_MIN_PAGESIZE = Integer
			.parseInt(PropertiesReader.getString("PAGER_MIN_PAGESIZE")); // 每页显示的最少记录数

	public static final int PAGER_MAX_PAGESIZE = Integer
			.parseInt(PropertiesReader.getString("PAGER_MAX_PAGESIZE")); // 每页显示的最大记录数

	/** *********************** 系统变量 ******************* */

	public static final String FLAG_YES = "1";

	public static final String FLAG_NO = "0";

	public static final String APPLICATION_ENCODING = "UTF-8";

	public static final String DEFAULT_JNDI_NAME = PropertiesReader
			.getString("DEFAULT_JNDI_NAME");

	/** *********************** 扫描app变量 ******************* */
	public static final int KEEP_SESSION_INTERVAL = Integer
			.parseInt(PropertiesReader.getString("KEEP_SESSION_INTERVAL"));

	public static final int SCANN_PRO_INTERVAL = Integer
			.parseInt(PropertiesReader.getString("SCANN_PRO_INTERVAL"));

	/** *********************** Session AttributeName ******************* */

	public static final String SESSION_TOP = "session_top";

	public static final String SESSION_USER_SUBSCRIBE = "session_user_subscribe";

	public static final String SESSION_USER_SUBSCRIBE_INFO = "session_user_subscribe_info";

	public static final String SESSION_NICK = "session_nick";

	public static final String SESSION_SHOP = "session_shop";

	public static final String APPLICATION_COUNT = "application_count";

	public static final String SESSEION_ALL_ITEMS = "session_all_items";

	public static final String SESSEION_ONSALE_ITEMS = "session_onsale_items";

	public static final String SESSEION_INVENTORY_ITEMS = "session_inventory_items";

	public static final String PRO_SETTING = "ipro";

}
